<?php
declare (strict_types = 1);

namespace app\api\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class InfoCat extends Model
{
     public function description()
    {

        return $this->hasOne("cat_description", 'cat_id', "cat_id")->where("language_id",getLangs(session("lang", 'zh_CN')))->bind(['cat_name']);

    }
}
